package com.fanjun.learning.multithread.Two_Phase_Termination;

/**
 * Created by fanjun on 16/10/17.
 */
public class CountThreadSec extends Thread{

    public CountThreadSec(String name) {
        super(name);
    }

    @Override
    public void run(){
        try {
            sleep(1000000);
        }catch (InterruptedException ex){
            System.out.println(Thread.currentThread().getName() + "被中断,中断状态:" + isInterrupted());
        }finally {
            System.out.println("线程是否还活着:" + isAlive());
        }
    }
}
